//
//  HttpTool.h
//  2131
//
//  Created by 健健 on 2018/2/24.
//  Copyright © 2018年 123. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^NetSuccess)(id responseData);
typedef void (^NetFailure)(NSString * errorMsg);


@interface HttpTool : NSObject
+(void)getApi:(NSString *)api params:(NSDictionary *)params success:(NetSuccess)success failure:(NetFailure)failure;

+ (void)postApi:(NSString *)api params:(NSDictionary *)params success:(NetSuccess)success failure:(NetFailure)failure isLoding:(BOOL)isLoding;
@end
